import {
  Http
} from '../authRequest.js';
const app = getApp()
export class User extends Http {
  constructor() {
    super();
  }
  updateUser(data) {
    return this.request({
      url: 'box/user',
      data: data,
      method: app.globalData.PUT,
      type: app.globalData.typePOST
    });
  }
  getUserInfo(data) {
    return this.request({
      url: 'box/user/getUserInfo?userName=' + data,
      method: app.globalData.GET,
      type: app.globalData.typeGET
    });
  }
}